package com.aspose.cells;

class zha implements zafw {
   private zahr a;
   private zahl b;
   private zr c;
   private zp d;
   private zfv e;
   private zfv f;
   private int g;
   private int h;
   private boolean i;
   private boolean j;

   zha(Worksheet var1) {
      this.c = var1.getCells().f();
      this.a = var1.getCells().getRows().a.a(-1, -1, false);
      if (this.a == null) {
         this.i = true;
      } else {
         this.i = false;
         this.e = new zfv();
      }

   }

   public zp c() {
      if (this.i) {
         return null;
      } else if (!this.a.hasNext()) {
         this.i = true;
         return null;
      } else {
         this.d = this.a.e();
         this.g = this.a.a();
         this.b = this.d.a(-1, -1, false);
         if (this.b == null) {
            this.j = true;
         } else {
            this.j = false;
         }

         return this.d;
      }
   }

   public zfv d() {
      if (this.j) {
         return null;
      } else {
         this.h = this.b.a();
         if (this.h < 0) {
            this.j = true;
            return null;
         } else {
            this.f = this.d.a(this.h, this.e, 7);
            return this.f;
         }
      }
   }
}
